<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>A17公寓平面图</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Save for Web Styles (A17一层.psd) -->
<link href="css/A17_cut_13.css" rel="stylesheet" type="text/css" />
<!-- End Save for Web Styles -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.query.js"></script>
<script type="text/javascript" src="js/adminShowRoom.js"></script>
<script type="text/javascript">
	$(document).ready(function() {
		//通过url地址获取层数的参数
		var url = parent.window.location.href;
		var floor = $.query.load(url).get("f");
		$("div[id*='A17-L']").each(function() {
			var room = $(this);
			var id = room.attr("id");
			var patten = /^A17-L\d{2}-\d{2}$/;

			room.addClass(id);

			if (patten.test(id)) {
				room.attr("id","o_"+id);
				setRoomState(id, function(){
					showRoom(id);
				}, "black");
				room.click(function(){					
					showRoom(id);
				}); 				
			}
		});
		//获取该层的所有房间信息
		$.post("AjaxAction!getRoomInfo.action", {
			department : "A17",
			floor : floor
		}, function(data) {
			$(data).each(function(i) {
				var func = function(){
					showRoom(data[i].room_number);
				};
				if (data[i].total == data[i].current || data[i].chooseAble == 0) {
					setRoomState(data[i].room_number, func, "black");
				} else {
					if (data[i].gender_type == '0') { //男生房间用蓝色遮罩层
						setRoomState(data[i].room_number, func, "blue");
					} else { //女生房间用红色遮罩层表示
						setRoomState(data[i].room_number, func, "red");
					}
				}
			});
		}, "json");
	});
</script>
</head>
<body
	style="background-color: #FFFFFF; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;">
	<!-- ImageReady Slices (A17二层.jpg) -->
	<div id="__01">
		<div id="chooseInfo">
			<p style="margin: 5px 0 0 30px">
				<span>当前房间：</span><span id="currentRoom">无</span>
			</p>
			<p style="margin: 5px 0 0 30px">
				<span>开放状态：</span><span id="roomState">无</span>
			</p>
			<p style="margin: 5px 0 0 30px">
				<span>房间类型：</span><span id="roomSex">无</span>
			</p>
			<p style="margin: 5px 0 0 30px">
				<span>空余床位：</span><span id="leftBed">无</span>
			</p>
			<p style="margin: 5px 0 0 30px">
				<button id="changeBt" disabled class="button"
					onclick="changeRoomState()">修改</button>
			</p>
		</div>
		<div id="bed" style="visibility: visible"></div>
		<div id="A17-L13-">
			<img src="images/A17/A17-L13-.png" width="600" height="177" alt="">
		</div>
		<div id="A17-L13-002">
			<img src="images/A17/A17-L13--02.png" width="60" height="368" alt="">
		</div>
		<div id="A17-L13-02">
			<img src="images/A17/A17-L13-02.png" width="41" height="105" alt="">
		</div>
		<div id="A17-L13-04">
			<img src="images/A17/A17-L13-04.png" width="18" height="105" alt="">
		</div>
		<div id="A17-L13-06">
			<img src="images/A17/A17-L13-06.png" width="18" height="105" alt="">
		</div>
		<div id="A17-L13-08">
			<img src="images/A17/A17-L13-08.png" width="20" height="105" alt="">
		</div>
		<div id="A17-L13-10">
			<img src="images/A17/A17-L13-10.png" width="19" height="105" alt="">
		</div>
		<div id="A17-L13-12">
			<img src="images/A17/A17-L13-12.png" width="18" height="105" alt="">
		</div>
		<div id="A17-L13-14">
			<img src="images/A17/A17-L13-14.png" width="18" height="105" alt="">
		</div>
		<div id="A17-L13-010">
			<img src="images/A17/A17-L13--10.png" width="20" height="24" alt="">
		</div>
		<div id="A17-L13-011">
			<img src="images/A17/A17-L13--11.png" width="137" height="24" alt="">
		</div>
		<div id="A17-L13-24">
			<img src="images/A17/A17-L13-24.png" width="19" height="105" alt="">
		</div>
		<div id="A17-L13-26">
			<img src="images/A17/A17-L13-26.png" width="19" height="105" alt="">
		</div>
		<div id="A17-L13-28">
			<img src="images/A17/A17-L13-28.png" width="18" height="105" alt="">
		</div>
		<div id="A17-L13-30">
			<img src="images/A17/A17-L13-30.png" width="19" height="105" alt="">
		</div>
		<div id="A17-L13-32">
			<img src="images/A17/A17-L13-32.png" width="19" height="105" alt="">
		</div>
		<div id="A17-L13-34">
			<img src="images/A17/A17-L13-34.png" width="17" height="105" alt="">
		</div>
		<div id="A17-L13-36">
			<img src="images/A17/A17-L13-36.png" width="20" height="105" alt="">
		</div>
		<div id="A17-L13-38">
			<img src="images/A17/A17-L13-38.png" width="37" height="105" alt="">
		</div>
		<div id="A17-L13-020">
			<img src="images/A17/A17-L13--20.png" width="63" height="368" alt="">
		</div>
		<div id="A17-L13-16">
			<img src="images/A17/A17-L13-16.png" width="19" height="81" alt="">
		</div>
		<div id="A17-L13-17">
			<img src="images/A17/A17-L13-17.png" width="22" height="81" alt="">
		</div>
		<div id="A17-L13-18">
			<img src="images/A17/A17-L13-18.png" width="21" height="81" alt="">
		</div>
		<div id="A17-L13-19">
			<img src="images/A17/A17-L13-19.png" width="26" height="81" alt="">
		</div>
		<div id="A17-L13-025">
			<img src="images/A17/A17-L13--25.png" width="26" height="12" alt="">
		</div>
		<div id="A17-L13-21">
			<img src="images/A17/A17-L13-21.png" width="22" height="81" alt="">
		</div>
		<div id="A17-L13-22">
			<img src="images/A17/A17-L13-22.png" width="21" height="81" alt="">
		</div>
		<div id="A17-L13-20">
			<img src="images/A17/A17-L13-20.png" width="26" height="69" alt="">
		</div>
		<div id="A17-L13-029">
			<img src="images/A17/A17-L13--29.png" width="477" height="18" alt="">
		</div>
		<div id="A17-L13-030">
			<img src="images/A17/A17-L13--30.png" width="22" height="245" alt="">
		</div>
		<div id="A17-L13-01">
			<img src="images/A17/A17-L13-01.png" width="19" height="97" alt="">
		</div>
		<div id="A17-L13-03">
			<img src="images/A17/A17-L13-03.png" width="18" height="97" alt="">
		</div>
		<div id="A17-L13-05">
			<img src="images/A17/A17-L13-05.png" width="18" height="97" alt="">
		</div>
		<div id="A17-L13-07">
			<img src="images/A17/A17-L13-07.png" width="20" height="97" alt="">
		</div>
		<div id="A17-L13-09">
			<img src="images/A17/A17-L13-09.png" width="19" height="97" alt="">
		</div>
		<div id="A17-L13-11">
			<img src="images/A17/A17-L13-11.png" width="18" height="97" alt="">
		</div>
		<div id="A17-L13-13">
			<img src="images/A17/A17-L13-13.png" width="18" height="97" alt="">
		</div>
		<div id="A17-L13-15">
			<img src="images/A17/A17-L13-15.png" width="20" height="97" alt="">
		</div>
		<div id="A17-L13-039">
			<img src="images/A17/A17-L13--39.png" width="137" height="245" alt="">
		</div>
		<div id="A17-L13-23">
			<img src="images/A17/A17-L13-23.png" width="19" height="97" alt="">
		</div>
		<div id="A17-L13-25">
			<img src="images/A17/A17-L13-25.png" width="19" height="97" alt="">
		</div>
		<div id="A17-L13-27">
			<img src="images/A17/A17-L13-27.png" width="18" height="97" alt="">
		</div>
		<div id="A17-L13-29">
			<img src="images/A17/A17-L13-29.png" width="19" height="97" alt="">
		</div>
		<div id="A17-L13-31">
			<img src="images/A17/A17-L13-31.png" width="19" height="97" alt="">
		</div>
		<div id="A17-L13-33">
			<img src="images/A17/A17-L13-33.png" width="17" height="97" alt="">
		</div>
		<div id="A17-L13-35">
			<img src="images/A17/A17-L13-35.png" width="20" height="97" alt="">
		</div>
		<div id="A17-L13-37">
			<img src="images/A17/A17-L13-37.png" width="18" height="97" alt="">
		</div>
		<div id="A17-L13-048">
			<img src="images/A17/A17-L13--48.png" width="19" height="245" alt="">
		</div>
		<div id="A17-L13-049">
			<img src="images/A17/A17-L13--49.png" width="150" height="148" alt="">
		</div>
		<div id="A17-L13-050">
			<img src="images/A17/A17-L13--50.png" width="149" height="148" alt="">
		</div>
	</div>
	<!-- End Save for Web Slices -->
</body>
</html>